package com.tech.connect.api;

import java.io.Serializable;

/**
 * Created by Ksy.
 */

public class CurrentInfo implements Serializable {


    public double lat;
    public double lng;
    public String provinceName;
    public String cityName;
    public String district;
    public String address;
    public String token;
    private static CurrentInfo currentInfo;

    private CurrentInfo() {
        super();
    }


    public static CurrentInfo getUserInfo() {
        if (currentInfo == null) {
            synchronized (CurrentInfo.class) {
                if (currentInfo == null) {
                    currentInfo = new CurrentInfo();
                    return currentInfo;
                }
            }
        }
        return currentInfo;
    }

    @Override
    public String toString() {
        return "CurrentInfo{" +
                "lat=" + lat +
                ", lng=" + lng +
                ", provinceName='" + provinceName + '\'' +
                ", cityName='" + cityName + '\'' +
                ", district='" + district + '\'' +
                ", address='" + address + '\'' +
                ", token='" + token + '\'' +
                '}';
    }
}
